import fetch from 'utils/fetch';

export function page(query) {
return fetch({
url: '/api/orderPay/selectByQuery',
method: 'get',
params: query
});
}
export function pageResult(query) {
	return fetch({
		url: '/api/orderPay/selectByCityCode',
		method: 'get',
		params: query
	});
}

export function addObj(obj) {
return fetch({
url: '/api/orderPay',
method: 'get',
data: obj
});
}

export function getObj(id) {
return fetch({
url: '/orderPay/' + id,
method: 'get'
})
}

export function delObj(id) {
return fetch({
url: '/api/orderPay/' + id,
method: 'delete'
})
}

export function putObj(id, obj) {
return fetch({
url: '/api/orderPay/' + id,
method: 'put',
data: obj
})
}
